/*
 * MODULE  NAME  :
 * PROGRAM NAME  : workerpub.h
 * AUTHOR        : HOTMOCHA
 * CREATE  DATE  : 2015-03-15 13:57:21
 * PROGRAM DESC  :
 *
 * HISTORY       :
 *
 */
#ifndef _H_WORKERPUB_H_
#define _H_WORKERPUB_H_
#include "worker.h"
#include "workermanager.h"
#include "coremanager.h"

void SetTaskName(struct WorkerEnv* env, char *strTaskName);
int SetHeader(struct HttpReq *req, char *header);
int SetCookieFromFile(struct HttpReq *req, char *file);
int SetCookie(struct HttpReq *req, char *cookie);
int SetPostdata(struct HttpReq *req, char *postdata);
int SetUrl(struct HttpReq *req, char *url);
void SetVerbose(struct WorkerEnv *env, int e);
int SetCertFile(struct TaskEnv *tenv, struct HttpReq *req, char *filename);
void SetHttpReqInputData(struct HttpReq *req, void *inputdata, void (*freeFunc)(void *));
int PrintRespBody(struct HttpReq *req);
int PrintRespHeader(struct HttpReq *req);
int SetCertFile(struct TaskEnv *tenv, struct HttpReq *req, char *filename);

#endif
